package com.genius.system.bo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
@ApiModel(value = "添加消息BO", description = "从客户端，由用户传入的数据封装在此entity中")
public class InsertNoticeBO {

    @NotBlank(message = "消息标题不能为空")
    @ApiModelProperty("消息标题")
    private String noticeTitle;

    @NotNull(message = "消息类型不能为空")
    @ApiModelProperty("消息类型（1通知 2公告）")
    private String noticeType;

    @NotNull(message = "消息状态不能为空")
    @ApiModelProperty("消息状态（1正常 0关闭）")
    private String status;

    @NotNull(message = "消息内容不能为空")
    @ApiModelProperty(value = "消息内容")
    private String noticeContent;

    @ApiModelProperty("备注")
    private String remark;
}
